/*** 一级菜单：首页 */
import Index from '@/views/index/index'
/*** 一级菜单：地图 */
import Maps from '@/views/Maps/index'

/*** 二级菜单 => 地图引入组件 :  */
/*** 地图：离线百度地图 */
import OfflineBaiduMap from '@/views/Maps/OfflineBaiduMap/index'
/*** 地图：下载任务页面 */
import TasksPage from '@/views/Maps/tasksPage/index'

/*** 二级菜单：系统配置 */
export const mapsMap = [
  {
    path: '/OfflineBaiduMap',
    component: OfflineBaiduMap,
    meta: {name: 'OfflineBaiduMap', needAuth: true, permission: true, parent: 'Maps'}
  },
  {
    path: '/TasksPage',
    component: TasksPage,
    meta: {name: 'TasksPage', needAuth: true, permission: true, parent: 'Maps'}
  },
];

/*** 一级菜单 */
export const menuRouterMap = [
  {
    path: '/Index',
    component: Index,
    meta: {name: 'Index', needAuth: true, permission: true, parent: 'Index', isHide: false},
  },
  {
    path: '/Maps',
    component: Maps,
    children: mapsMap,
    meta: {name: 'Maps', needAuth: true, permission: true, parent: 'Maps', isHide: false},
    redirect: '/OfflineBaiduMap'
  },
];
